home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 1 / Cream of the Crop 1.iso / PROGRAM / MSC2BC.ARJ / BASE.TXT < prev    next >
Text File  |  1992-06-26  |  1KB  |  24 lines

  1.     The following notes,  keyed  to comments in each program, explain
  2.     the differences:
  3.  
  4.     Note 1 - BASE_AFT.C no longer refers to the _segment baseseg. All
  5.    _based variables become _far variables.
  6.  
  7.     Note 2 - With Borland C++, there is no need  to  allocate a based
  8.     heap.  The Microsoft C6.0a _bmalloc calls become farmalloc calls.
  9.  
  10.     Note  3  -  If you use based variables as arguments to standard C
  11.     functions, you need to recast based heap pointers to far pointers
  12.     to eliminate compiler  warning  messages. This is not needed with
  13.     far heap pointers.
  14.  
  15.     Note 4 - Do a farfree function call instead of a  _bfree function
  16.     call, and remove the _bfreeseg function call.
  17.  
  18.     You could  handle some of these changes transparently through the
  19.     C preprocessor with #defines,  but  because  all  program changes
  20.     cannot be managed this way, you would have a less clearly written
  21.     program to maintain as  a  result.  Instead,  we suggest that you
  22.     make the changes one by one directly in source code, as  shown in
  23.     BASE_AFT.C.
  24.